package com.meisiabc.app.repository.db.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meisiabc.app.repository.db.entity.LeaveRequest;
import com.meisiabc.app.repository.db.mapper.LeaveRequestMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeaveRequestManager extends ServiceImpl<LeaveRequestMapper, LeaveRequest> {

    public List<LeaveRequest> getNoSendSms() {
        return list(new QueryWrapper<LeaveRequest>().eq("send_sms", 0).eq("state", 1));
    }
}
